<div class="fly-panel fly-column">
  <div class="layui-container">
    <ul class="layui-clear">
      

      {if !empty($Request.param.topic) }
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block">
        <p class="layui-word-aux">话题: {$Request.param.topic}</p>
      </li>
        {else /}
        <li class="index-post-nav index-post-nav-index layui-hide-xs" ><a href="/">首页</a></li>
        {volist name='list_category' id='category'}
        <li class="index-post-nav index-post-nav-{$category.id}" ><a href="{:url('Post/index',['category_id'=>$category.id])}">{$category.title}</a></li>
        {/volist}
      {/if}

      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>

      <!-- 用户登入后显示 -->
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{:url('Post/my')}">我发表的贴</a></li>
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{:url('Post/collect')}">我收藏的贴</a></li>
    </ul>

    <div class="fly-column-right layui-hide-xs">
      <a target="_blank" href="https://www.baidu.com/s?wd={:urlencode('site:'.$Request.host)}">
        <span class="fly-search"><i class="layui-icon"></i></span>
      </a>
      <a href="{:url('Post/create',['category_id'=>$Request.param.category_id,'topic_title'=>$Request.param.topic])}" class="layui-btn">发表新帖</a>
    </div>
    <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
      <a href="{:url('Post/create',['category_id'=>$Request.param.category_id,'topic_title'=>$Request.param.topic])}" class="layui-btn">发表新帖</a>
    </div>
  </div>
</div>